home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / internet / net commander 1.0 / ISP / SCRPTLST / ONRAMP.CMD < prev    next >
Encoding:
Text File  |  1996-02-09  |  1.6 KB  |  80 lines

  1. # On Ramp Technologies Trumpet Winsock Script
  2.  
  3. # login.cmd
  4. #
  5. #initialize modem
  6. #    (for zoom and USR modems particularly, if atz does not 
  7. #    properly reset the modem, replace atz with at&f1).
  8. #
  9. output atz\13
  10. input 10 OK\n
  11. #
  12. # set modem to indicate DCD
  13. #    (if at&f does not properly initialize your modem, refer
  14. #    to your modem's manual and replace at&f with a modem 
  15. #string specific to your modem.)
  16. #
  17. output at&f\13
  18. input 10 OK\n
  19. #
  20. # send On-Ramp local access number
  21. # note: 5551234 just and example; replace it with an 
  22. # appropriate number from a current
  23. # "Quick Reference Guide".
  24. #
  25. # note: call waiting block prefix: *70, (e.g. *70,5551234)
  26. #
  27. output atdt5551234\13
  28. input 30 CONNECT
  29. #
  30. # wait until it is safe to send date because some modems hang # up if 
  31. # transmit during the connection phase.
  32. #
  33. wait 30 dcd
  34. #
  35. # now prod the server
  36. #
  37. output \13
  38. #
  39. # wait for the username prompt
  40. #
  41. input 30 username:
  42. #
  43. # send your personal On-Ramp username
  44. # (replace joesmith with your On-Ramp username)
  45. #
  46. output joesmith\13
  47. #
  48. # wait for password prompt
  49. #
  50. input 30 password:
  51. #
  52. # send your personal On-Ramp password
  53. # (replace mysecret with your On-Ramp password)
  54. #
  55. output mysecret\13
  56. #
  57. # now we are logged in
  58. # be sure to note the space before the colon:
  59. #
  60. input 30 :
  61. #
  62. # jump into slip mode
  63. #
  64. output slip\13
  65. #
  66. # wait for address string
  67. #
  68. input 30 Your address is
  69. #
  70. # parse address
  71. #
  72. address 30
  73. input 30 \n
  74. #
  75. # we are now connected and in slip mode
  76. #
  77. display \n
  78. display Connected. Your IP address is \i. \n
  79. #
  80. # now we are finished!